//
//  LRJ_SampleCoreTextView.h
//  Pods
//
//  Created by imac_LRJ on 2022/6/7.
//

#import "LRJ_AsyncViewControl.h"
#import "LRJ_MutableAttributedItem.h"


#import "LRJ_TextureMakerAndResponder.h"
typedef NS_ENUM(NSUInteger, LRJ_TextVerticalAlignment) {
    LRJ_TextVerticalAlignmentTop,
    LRJ_TextVerticalAlignmentCenter,
    LRJ_TextVerticalAlignmentBottom,
    LRJ_TextVerticalAlignmentCenterCompatibility,
};

typedef NS_ENUM(NSUInteger, LRJ_TextHorizontalAlignment) {
    LRJ_TextHorizontalAlignmentLeft,
    LRJ_TextHorizontalAlignmentCenter,
    LRJ_TextHorizontalAlignmentRight,
};

NS_ASSUME_NONNULL_BEGIN

@interface LRJ_SampleCoreTextView : LRJ_AsyncViewControl

@property (nonatomic, strong) LRJ_TextureMakerAndResponder *textDrawer;


// 水平对齐方式
@property (nonatomic, assign) LRJ_TextHorizontalAlignment horizontalAlignment;

// 垂直对齐方式
@property (nonatomic, assign) LRJ_TextVerticalAlignment verticalAlignment;

// 行数，default is 0
@property (nonatomic, assign) NSUInteger numerOfLines;

// 待绘制内容
@property (nonatomic, strong) LRJ_MutableAttributedItem *attributedItem;

@property (nonatomic, copy) void(^trancatedBlock)(void);
@end

NS_ASSUME_NONNULL_END
